package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysMealStatisticsMapper;
import com.ruoyi.system.domain.SysMealStatistics;
import com.ruoyi.system.service.ISysMealStatisticsService;

/**
 * 报餐统计Service业务层处理
 * 
 * @author jijinwu
 * @date 2024-07-19
 */
@Service
public class SysMealStatisticsServiceImpl implements ISysMealStatisticsService 
{
    @Autowired
    private SysMealStatisticsMapper sysMealStatisticsMapper;

    /**
     * 查询报餐统计
     * 
     * @param id 报餐统计主键
     * @return 报餐统计
     */
    @Override
    public SysMealStatistics selectSysMealStatisticsById(Long id)
    {
        return sysMealStatisticsMapper.selectSysMealStatisticsById(id);
    }

    /**
     * 查询报餐统计列表
     * 
     * @param sysMealStatistics 报餐统计
     * @return 报餐统计
     */
    @Override
    public List<SysMealStatistics> selectSysMealStatisticsList(SysMealStatistics sysMealStatistics)
    {
        return sysMealStatisticsMapper.selectSysMealStatisticsList(sysMealStatistics);
    }

    /**
     * 新增报餐统计
     * 
     * @param sysMealStatistics 报餐统计
     * @return 结果
     */
    @Override
    public int insertSysMealStatistics(SysMealStatistics sysMealStatistics)
    {
        return sysMealStatisticsMapper.insertSysMealStatistics(sysMealStatistics);
    }

    /**
     * 修改报餐统计
     * 
     * @param sysMealStatistics 报餐统计
     * @return 结果
     */
    @Override
    public int updateSysMealStatistics(SysMealStatistics sysMealStatistics)
    {
        return sysMealStatisticsMapper.updateSysMealStatistics(sysMealStatistics);
    }

    /**
     * 批量删除报餐统计
     * 
     * @param ids 需要删除的报餐统计主键
     * @return 结果
     */
    @Override
    public int deleteSysMealStatisticsByIds(Long[] ids)
    {
        return sysMealStatisticsMapper.deleteSysMealStatisticsByIds(ids);
    }

    /**
     * 删除报餐统计信息
     * 
     * @param id 报餐统计主键
     * @return 结果
     */
    @Override
    public int deleteSysMealStatisticsById(Long id)
    {
        return sysMealStatisticsMapper.deleteSysMealStatisticsById(id);
    }
}
